import api from '@/api/api'

/**
 *
 * {
    name: '',
    role: '',
    api: [],
    children:[]
  }
 *
 */
const roles = [
  {
    name: '欢迎页',
    role: '/welcome',
    checked: true,
    api: []
  }, {
    name: '工作平台',
    role: '/optWork',
    api: [],
    children: [{
      name: '今日数据',
      role: '/work',
      api: [
        api.userLogin,
        api.flowSourceList,
        api.flowSearchWordList,
        api.statisticMemberList,
        api.globalStatistic,
        api.flowPvList,
        api.getWorkData,
        '/work'
      ],
      children: []
    }, {
      name: '编辑平台',
      role: '/content/editing',
      api: [
        api.topicListAll,
        api.channelList,
        api.contentTree,
        api.typeList,
        api.viewNewsPageList,
        api.contentShareTree,
        api.configContentChargeGet,
        api.fullTextSearchChannelList,
        api.typeGet,
        api.tplModelList,
        api.groupList,
        api.channelGet,
        api.itemList,
        api.contentGet,
        api.modelList,
        api.contentTagList,
        api.getUserRoles,
        api.topicList,
        api.userList,
        api.setContentLike,
        api.attachmentPageList,
        api.getOneLevelChannelList,
        api.viewNewsGetPreviewAddress,
        api.getPlayAuthInfo,
        '/content/editing/list'
      ],
      children: [
        {
          name: '列表',
          role: '/content/editing/list',
          api: [api.viewNewsPageList]
        }, {
          name: '添加',
          role: '/content/editing/save',
          api: [
            api.contentSave,
            api.sysLiveSave,
          ]
        }, {
          name: '修改',
          role: '/content/editing/update',
          api: [
            api.contentUpdate,
            api.sysLiveUpdate,
          ]
        }, {
          name: '相关文章',
          role: '/content/editing/associated',
          api: [
            api.getContentLikeData,
            api.likeViewNewsPageList,
            api.deleteContentLike,
            api.updateContentLike
          ]
        }, {
          name: '删除',
          role: '/content/editing/delete',
          api: [
            api.viewNewsBatchFalseDelete,
          ]
        }, {
          name: '送签',
          role: '/content/editing/toSign',
          api: [api.viewNewsBatchToSign]
        }
      ]
    }, {
      name: '待签发平台',
      role: '/toSignPlatform',
      api: [
        api.topicListAll,
        api.channelList,
        api.contentTree,
        api.typeList,
        api.viewNewsPageList,
        api.contentShareTree,
        api.configContentChargeGet,
        api.fullTextSearchChannelList,
        api.typeGet,
        api.tplModelList,
        api.groupList,
        api.channelGet,
        api.itemList,
        api.contentGet,
        api.modelList,
        api.contentTagList,
        api.getUserRoles,
        api.topicList,
        api.userList,
        api.setContentLike,
        api.attachmentPageList,
        api.getOneLevelChannelList,
        api.viewNewsGetPreviewAddress,
        api.getPlayAuthInfo,
        '/content/toSign/list'
      ],
      children: [
        {
          name: '列表',
          role: '/content/toSign/list',
          api: [api.viewNewsPageList]
        }, {
          name: '修改',
          role: '/content/toSign/update',
          api: [
            api.contentUpdate,
            api.sysLiveUpdate,
          ]
        }, {
          name: '相关文章',
          role: '/content/toSign/associated',
          api: [
            api.getContentLikeData,
            api.likeViewNewsPageList,
            api.deleteContentLike,
            api.updateContentLike
          ]
        }, {
          name: '退稿',
          role: '/content/draft',
          api: [api.viewNewsBatchDraft]
        }, {
          name: '发布',
          role: '/content/check',
          api: [api.viewNewsBatchCheck]
        }
      ]
    }, {
      name: '已签发平台',
      role: '/signPlatform',
      api: [
        api.topicListAll,
        api.channelList,
        api.contentTree,
        api.typeList,
        api.viewNewsPageList,
        api.contentShareTree,
        api.configContentChargeGet,
        api.fullTextSearchChannelList,
        api.typeGet,
        api.tplModelList,
        api.groupList,
        api.channelGet,
        api.itemList,
        api.contentGet,
        api.modelList,
        api.contentTagList,
        api.getUserRoles,
        api.topicList,
        api.userList,
        api.setContentLike,
        api.attachmentPageList,
        api.getOneLevelChannelList,
        api.viewNewsGetPreviewAddress,
        '/content/sign/list'
      ],
      children: [
        {
          name: '列表',
          role: '/content/sign/list',
          api: [api.viewNewsPageList]
        }, {
          name: '修改',
          role: '/content/sign/update',
          api: [
            api.contentUpdate,
            api.sysLiveUpdate,
          ]
        }, {
          name: '相关文章',
          role: '/content/sign/associated',
          api: [
            api.getContentLikeData,
            api.likeViewNewsPageList,
            api.deleteContentLike,
            api.updateContentLike
          ]
        }, {
          name: '撤稿',
          role: '/content/reject',
          api: [api.viewNewsBatchReject]
        }, {
          name: '克隆',
          role: '/content/sign/cloneNews',
          api: [api.viewNewsClone]
        }
      ]
    }, {
      name: '回收站',
      role: '/contentCycle',
      api: [
        api.topicListAll,
        api.channelList,
        api.contentTree,
        api.typeList,
        api.viewNewsPageList,
        api.contentShareTree,
        api.configContentChargeGet,
        api.fullTextSearchChannelList,
        api.typeGet,
        api.tplModelList,
        api.groupList,
        api.channelGet,
        api.itemList,
        api.contentGet,
        api.modelList,
        api.contentTagList,
        api.getUserRoles,
        api.topicList,
        api.userList,
        '/content/contentCycle/list'
      ],
      children: [
        {
          name: '列表',
          role: '/content/contentCycle/list',
          api: [api.viewNewsPageList]
        }, {
          name: '还原',
          role: '/contentCycle/recycle',
          api: [
            api.viewNewsBatchRemoveRecycle
          ]
        }, {
          name: '删除',
          role: '/contentCycle/delete',
          api: [
            api.contentCycleDelete,
          ]
        }
      ]
    }, {
      name: '附件管理',
      role: '/attachment',
      api: [
        api.attachmentPageList,
        api.getOneLevelChannelList,
        '/attachment/pageList'
      ],
      children: [
        {
          name: '列表',
          role: '/attachment/pageList',
          api: [api.attachmentPageList]
        },
        {
          name: '上传',
          role: '/attachment/upload',
          api: [
            api.attachmentBatchUpload,
            api.attachmentBatchSave
          ]
        },
        {
          name: '修改',
          role: '/attachment/update',
          api: [
            api.attachmentGet,
            api.attachmentUpdate
          ]
        },
        {
          name: '删除',
          role: '/attachment/delete',
          api: [api.attachmentDelete]
        },
        {
          name: '复制',
          role: '/attachment/copyPath',
          api: []
        }
      ]
    }, {
      name: '专题管理',
      role: '/topic',
      api: [
        api.topicGet,
        '/topic/list',
      ],
      children: [
        {
          name: '列表',
          role: '/topic/list',
          api: [api.topicList]
        },
        {
          name: '专题文章',
          role: '/topic/viewNewsPageList',
          api: [api.topicViewNewsPageList]
        },
        {
          name: '添加',
          role: '/topic/save',
          api: [
            api.topicSave,
            api.topicTplList
          ]
        },
        {
          name: '删除',
          role: '/topic/delete',
          api: [
            api.topicDelete
          ]
        },
        {
          name: '修改',
          role: '/topic/update',
          api: [
            api.topicUpdate,
            api.topicTplList
          ]
        }, {
          name: '保存排序',
          role: '/topic/priority',
          api: [
            api.topicPriority
          ]
        }
      ]
    }, {
      name: '频道',
      role: '/channel',
      api: [
        api.channelTree,
        api.channelCopy,
        api.contentTree,
        api.modelList,
        api.itemList,
        api.channelCreatPath,
        api.fullTextSearchChannelList,
        api.tplModelList,
        api.groupList,
        api.workflowList,
        api.tplSelectContentModel,
        api.channelCheckPath,
        '/channel/list'
      ],
      children: [
        {
          name: '列表',
          role: '/channel/list',
          api: [
            api.channelList,
          ],
        },
        {
          name: '保存排序',
          role: '/channel/savePriority',
          api: [
            api.channelPriority
          ],
        },
        {
          name: '删除',
          role: '/channel/channelDelete',
          api: [
            api.channelDelete,
          ],
        },
        {
          name: '新增',
          role: '/channel/save',
          api: [
            api.channelGet,
            api.channelSave,
          ],
        },
        {
          name: '修改',
          role: '/channel/update',
          api: [
            api.channelGet,
            api.channelUpdate,
          ],
        }
      ]
    }, {
      name: '标签管理',
      role: '/tag',
      api: [
        api.contentTagGet,
        api.contentTagPageList,
        '/tag/pageList'
      ],
      children: [
        {
          name: '列表',
          role: '/tag/pageList',
          api: [api.contentTagPageList]
        }, {
          name: '添加',
          role: '/tag/save',
          api: [api.contentTagSave]
        }, {
          name: '修改',
          role: '/tag/update',
          api: [
            api.contentTagUpdate
          ]
        }, {
          name: '删除/批量删除',
          role: '/tag/delete',
          api: [api.contentTagDelete]
        }
      ]
    }, {
      name: '搜索关键词',
      role: '/keyword',
      api: [
        api.keywordGet,
        api.keywordPageList,
        '/keyword/pageList'
      ],
      children: [
        {
          name: '列表',
          role: '/keyword/pageList',
          api: [api.keywordPageList]
        }, {
          name: '添加',
          role: '/keyword/save',
          api: [api.keywordSave]
        }, {
          name: '修改',
          role: '/keyword/update',
          api: [api.keywordUpdate]
        }, {
          name: '删除/批量删除',
          role: '/keyword/delete',
          api: [api.keywordDelete]
        }, {
          name: '保存排序',
          role: '/keyword/batchUpdate',
          api: [api.keywordBatchUpdate]
        }
      ]
    }]
  },
  {
    name: '组版管理',
    role: '/groupEditionManger',
    children: [
      {
        name: '公共组版',
        role: '/commonGroupEdition',
        api: [
          api.groupEditionPageList,
          api.getOneLevelChannelList,
          api.groupEditionNewPageList,
          api.viewNewsGroupEditionPageList,
          api.viewNewsSelectGroupEditionPageList,
          api.groupEditionNewCancel,
          api.groupEditionNewComplete,
          api.groupEditionNewSave,
          api.groupEditionNewSub,
          '/commonGroupEdition/pageList'
        ],
        children: []
      },
      {
        name: 'App首页组版',
        role: '/appGroupEdition',
        api: [
          api.groupEditionPageList,
          api.getOneLevelChannelList,
          api.groupEditionNewPageList,
          api.viewNewsGroupEditionPageList,
          api.viewNewsSelectGroupEditionPageList,
          api.groupEditionNewComplete,
          api.groupEditionNewCancel,
          api.groupEditionNewSave,
          api.groupEditionNewSub,
          '/appGroupEdition/pageList'
        ],
        children: []
      },
      {
        name: 'pc首页组版',
        role: '/pcGroupEdition',
        api: [
          api.groupEditionPageList,
          api.getOneLevelChannelList,
          api.groupEditionNewPageList,
          api.viewNewsGroupEditionPageList,
          api.viewNewsSelectGroupEditionPageList,
          api.groupEditionNewCancel,
          api.groupEditionNewComplete,
          api.groupEditionNewSave,
          api.groupEditionNewSub,
          '/pcGroupEdition/pageList'
        ],
        children: []
      },
      {
        name: '频道组版',
        role: '/channelGroupEdition',
        api: [
          api.groupEditionPageList,
          api.getOneLevelChannelList,
          api.groupEditionNewPageList,
          api.viewNewsGroupEditionPageList,
          api.viewNewsSelectGroupEditionPageList,
          api.groupEditionNewCancel,
          api.groupEditionNewSave,
          api.contentTree,
          api.groupEditionNewSub,
          '/channelGroupEdition/pageList'
        ],
        children: []
      },
      {
        name: '审核',
        role: '/groupEdition/check',
        api: [
          api.groupEditionNewDelete,
          api.groupEditionNewComplete,
          api.viewNewsCancelUpdate,
        ]
      }
    ]
  },
  {
    name: '直播管理',
    role: '/liveManger',
    children: [
      {
        name: '用户管理',
        role: '/liveUser',
        api: [
          api.departmentList,
          api.userPageList,
          api.userGet,
          '/liveUser/pageList'
        ],
        children: [
          {
            name: '列表',
            role: '/liveUser/pageList',
            api: [api.userPageList]
          },
          {
            name: '添加',
            role: '/liveUser/save',
            api: [
              api.validateName,
              api.memberCheckName,
              api.userSave
            ]
          },
          {
            name: '修改',
            role: '/liveUser/update',
            api: [
              api.userUpdate,
            ]
          },
          {
            name: '重置密码',
            role: '/liveUser/editPw',
            api: [
              api.userUpdatePw,
            ]
          },
          {
            name: '删除/批量删除',
            role: '/liveUser/delete',
            api: [api.userDelete]
          }
        ]
      },
      {
        name: '直播管理',
        role: '/sysLive',
        api: [
          api.sysLiveGet,
          api.sysLiveCreatePushUrl,
          api.contentTagList,
          '/sysLive/pageList'
        ],
        children: [
          {
            name: '列表',
            role: '/sysLive/pageList',
            api: [api.sysLivePageList]
          },
          {
            name: '添加',
            role: '/sysLive/save',
            api: [api.sysLiveSave]
          },
          {
            name: '修改',
            role: '/sysLive/update',
            api: [
              api.sysLiveUpdate,
            ]
          },
          {
            name: '批量上架下架',
            role: '/sysLive/changeStatus',
            api: [
              api.sysLiveChangeStatus,
            ]
          },
          {
            name: '删除',
            role: '/sysLive/delete',
            api: [api.sysLiveDelete]
          }
        ]
      }
    ]
  },
  {
    name: '问答管理',
    role: '/questionManger',
    children: [
      {
        name: '话题列表',
        role: '/problemTopic',
        api: [
          api.problemTopicGet,
          api.problemTopicChangeState,
          api.problemTopicPageList,
          '/problemTopic/pageList'
        ],
        children: [
          {
            name: '列表',
            role: '/problemTopic/pageList',
            api: [api.problemTopicPageList]
          },
          {
            name: '保存排序',
            role: '/problemTopic/batchUpdate',
            api: [api.problemTopicBatchUpdate]
          },
          {
            name: '添加',
            role: '/problemTopic/save',
            api: [api.problemTopicSave]
          },
          {
            name: '修改',
            role: '/problemTopic/update',
            api: [
              api.problemTopicUpdate,
            ]
          },
          {
            name: '删除',
            role: '/problemTopic/delete',
            api: [api.problemTopicDelete]
          }
        ]
      },
      {
        name: '话题问题',
        role: '/problem',
        api: [
          api.problemPageList,
          api.problemTopicList,
          '/problem/pageList'
        ],
        children: [
          {
            name: '列表',
            role: '/problem/pageList',
            api: [api.problemPageList]
          },
          {
            name: '添加',
            role: '/problem/save',
            api: [api.problemSave]
          },
          {
            name: '修改',
            role: '/problem/update',
            api: [
              api.problemGet,
              api.problemUpdate,
            ]
          },
          {
            name: '删除',
            role: '/problem/delete',
            api: [api.problemDelete]
          },
          {
            name: '查看用户问题',
            role: '/problem/userProblemPageList',
            api: [api.userProblemPageList]
          },
          {
            name: '删除用户问题',
            role: '/problem/userProblemDelete',
            api: [api.commentRemove]
          },
          {
            name: '审核用户问题',
            role: '/problem/userProblemCheck',
            api: [api.commentUserProblemChecked]
          },
          {
            name: '回复用户问题',
            role: '/problem/userProblemReply',
            api: [api.userProblemReply]
          }
        ]
      },
      {
        name: '用户问题',
        role: '/userProblem',
        api: [
          api.problemList,
          api.userProblemGet,
          api.userProblemPageList,
          '/userProblem/pageList'
        ],
        children: [
          {
            name: '列表',
            role: '/userProblem/pageList',
            api: [api.userProblemPageList]
          },
          {
            name: '删除',
            role: '/userProblem/delete',
            api: [api.commentRemove]
          },
          {
            name: '审核',
            role: '/userProblem/check',
            api: [api.commentUserProblemChecked]
          },
          {
            name: '回复',
            role: '/userProblem/reply',
            api: [
              api.userProblemReply,
            ]
          },
          {
            name: '查看跟帖',
            role: '/userProblem/look',
            api: [
              api.userProblemPageList,
            ]
          },
          {
            name: '跟帖审核',
            role: '/userProblem/commentsCheck',
            api: [
              api.checkUserProblemReply,
            ]
          },
          {
            name: '跟帖删除',
            role: '/userProblem/commentsDelete',
            api: [api.commentRemove]
          }
        ]
      }
    ]
  },
  {
    name: '商城管理',
    role: '/mall',
    children: [
      {
        name: '商品类型',
        role: '/goodsType',
        api: [
          api.goodsTypeGet,
          api.goodsTypePageList,
          '/goodsType/pageList'
        ],
        children: [
          {
            name: '列表',
            role: '/goodsType/pageList',
            api: [api.goodsTypePageList]
          },
          {
            name: '添加',
            role: '/goodsType/save',
            api: [api.goodsTypeSave]
          },
          {
            name: '修改',
            role: '/goodsType/update',
            api: [
              api.goodsTypeUpdate,
            ]
          },
          {
            name: '删除',
            role: '/goodsType/delete',
            api: [api.goodsTypeDelete]
          }
        ]
      },
      {
        name: '商品分类',
        role: '/goodsTag',
        api: [
          api.goodsTagGet,
          api.goodsTagPageList,
          '/goodsTag/pageList'
        ],
        children: [
          {
            name: '列表',
            role: '/goodsTag/pageList',
            api: [api.goodsTagPageList]
          },
          {
            name: '添加',
            role: '/goodsTag/save',
            api: [api.goodsTagSave]
          },
          {
            name: '修改',
            role: '/goodsTag/update',
            api: [
              api.goodsTagUpdate,
            ]
          },
          {
            name: '删除',
            role: '/goodsTag/delete',
            api: [api.goodsTagDelete]
          }
        ]
      },
      {
        name: '商品列表',
        role: '/integralGoods',
        api: [
          api.goodsTagList,
          api.goodsTypeList,
          api.integralGoodsGet,
          api.integralGoodsPageList,
          '/integralGoods/pageList'
        ],
        children: [
          {
            name: '列表',
            role: '/integralGoods/pageList',
            api: [api.integralGoodsPageList]
          },
          {
            name: '保存排序',
            role: '/integralGoods/batchUpdate',
            api: [api.integralGoodsBatchUpdate]
          },
          {
            name: '添加',
            role: '/integralGoods/save',
            api: [
              api.integralGoodsSave,
            ]
          },
          {
            name: '修改',
            role: '/integralGoods/update',
            api: [
              api.integralGoodsUpdate,
            ]
          },
          {
            name: '删除',
            role: '/integralGoods/delete',
            api: [api.integralGoodsDelete]
          }
        ]
      }
    ]
  },
  {
    name: '用户管理',
    role: '/appUserManager',
    children: [{
      name: '用户列表',
      role: '/appUser',
      api: [
        api.appUserGet,
        api.groupList,
        '/appUser/pageList'
      ],
      children: [
        {
          name: '会员列表',
          role: '/appUser/pageList',
          api: [api.appUserList]
        },
        {
          name: '批量加入黑名单',
          role: '/appUser/addBlackList',
          api: [api.appUserAddBlack]
        },
        {
          name: '批量移除黑名单',
          role: '/appUser/removeBlackList',
          api: [api.appUserRemoveBlack]
        },
        {
          name: '修改',
          role: '/appUser/update',
          api: [api.appUserUpdate]
        }, {
          name: '查看账户',
          role: '/appUser/lookAccount',
          api: [api.appAccountList]
        }
      ]
    }, {
      name: '积分记录',
      role: '/integralLog',
      children: [{
        name: '列表',
        role: '/integralLog/pageList',
        api: [api.appUserIntegralLogPageList]
      }]
    }, {
      name: '兑换记录',
      role: '/exchangeGoods',
      api: [
        api.userGoodsPageList,
        api.userGoodsGet,
      ],
      children: [
        {
          name: '列表',
          role: '/exchangeGoods/pageList',
          api: [
            api.userGoodsPageList,
          ]
        },
        {
          name: '编辑',
          role: '/exchangeGoods/update',
          api: [
            api.userGoodsUpdate,
          ]
        },
        {
          name: '删除',
          role: '/exchangeGoods/delete',
          api: [
            api.userGoodsDelete,
          ]
        }
      ]
    }, {
      name: '爆料列表',
      role: '/factManger',
      api: [
        api.factGet,
        api.factPageList,
      ],
      children: [{
        name: '列表',
        role: '/fact/pageList',
        api: [
          api.factPageList,
        ]
      }, {
        name: '删除',
        role: '/fact/delete',
        api: [
          api.factDelete
        ]
      }, {
        name: '审核',
        role: '/fact/update',
        api: [
          api.factUpdate
        ]
      }]
    }
    ]
  },
  {
    name: '系统管理',
    role: '/systemManager',
    children: [{
      name: '管理用户',
      role: '/sysUser',
      api: [
        api.adminGlocalList,
        api.adminGlobleList,
        api.adminGlobleGet,
        api.adminGlocalGet,
        api.departmentList,
        api.adminValRank,
        api.roleList,
        api.siteList,
        api.groupList
      ],
      children: [{
        name: '列表',
        role: '/sysUser/pageList',
        api: [
          api.adminGlobleList,
        ]
      }, {
        name: '删除',
        role: '/sysUser/delete',
        api: [
          api.adminGlocalDelete,
          api.adminGlobleDelete
        ]
      }, {
        name: '修改',
        role: '/sysUser/edit',
        api: [
          api.adminGlocalUpdate,
          api.adminGlobleUpdate
        ]
      }, {
        name: '添加',
        role: '/sysUser/save',
        api: [
          api.adminGlocalSave,
          api.adminGlobleSave,
          api.memberCheckName
        ]
      }]
    }, {
      name: '公仔纸作者',
      role: '/paperDoll',
      api: [
        api.userPageList,
        api.departmentList,
        api.userGet,
        '/paperDoll/pageList'
      ],
      children: [{
        name: '列表',
        role: '/paperDoll/pageList',
        api: [
          api.userPageList,
        ]
      }, {
        name: '添加',
        role: '/paperDoll/save',
        api: [
          api.validateName,
          api.memberCheckName,
          api.userSave,
        ]
      }, {
        name: '修改',
        role: '/paperDoll/update',
        api: [
          api.userUpdate
        ]
      }, {
        name: '删除',
        role: '/paperDoll/delete',
        api: [
          api.userDelete
        ]
      }
      ]
    }, {
      name: '财经专栏作者',
      role: '/columnist',
      api: [
        api.userPageList,
        api.departmentList,
        api.userGet,
        '/columnist/pageList'
      ],
      children: [{
        name: '列表',
        role: '/columnist/pageList',
        api: [
          api.userPageList,
        ]
      }, {
        name: '添加',
        role: '/columnist/save',
        api: [
          api.validateName,
          api.memberCheckName,
          api.userSave,
        ]
      }, {
        name: '修改',
        role: '/columnist/update',
        api: [
          api.userUpdate
        ]
      }, {
        name: '删除',
        role: '/columnist/delete',
        api: [
          api.userDelete
        ]
      }
      ]
    }, {
      name: '文化专栏作者',
      role: '/cultureColumnist',
      api: [
        api.userPageList,
        api.departmentList,
        api.userGet,
        '/cultureColumnist/pageList'
      ],
      children: [{
        name: '列表',
        role: '/cultureColumnist/pageList',
        api: [
          api.userPageList,
        ]
      }, {
        name: '添加',
        role: '/cultureColumnist/save',
        api: [
          api.validateName,
          api.memberCheckName,
          api.userSave,
        ]
      }, {
        name: '修改',
        role: '/cultureColumnist/update',
        api: [
          api.userUpdate
        ]
      }, {
        name: '删除',
        role: '/cultureColumnist/delete',
        api: [
          api.userDelete
        ]
      }
      ]
    }, {
      name: '角色管理',
      role: '/role',
      api: [
        api.roleList,
        api.roleGet,
        '/role/pageList'
      ],
      children: [{
        name: '列表',
        role: '/role/pageList',
        api: [api.roleList]
      }, {
        name: '添加',
        role: '/role/save',
        api: [api.roleSave]
      }, {
        name: '修改',
        role: '/role/update',
        api: [api.roleUpdate]
      }, {
        name: '删除',
        role: '/role/roleDelete',
        api: [api.roleDelete]
      }, {
        name: '成员列表',
        role: '/role/members',
        api: [api.roleMembers]
      }/*, {
        name: '成员移除',
        role: '/role/roleMembersDelete',
        api: [api.roleMembers, api.roleMembersDelete]
      }*/]
    }, {
      name: '部门管理',
      role: '/department',
      api: [
        api.departmentList,
        api.departmentCheckName,
        api.departmentTree,
        api.departmentMemberList,
        api.departmentGet,
        api.guestbookTypeList,
        api.siteTree,
        api.departmentTree,
        api.getAllChannel,
        api.groupSave,
        '/department/tpm'
      ],
      children: [{
        name: '列表',
        role: '/department/list',
        api: [api.departmentList]
      }, {
        name: '添加',
        role: '/department/save',
        api: [api.departmentSave]
      }, {
        name: '修改',
        role: '/department/update',
        api: [api.departmentUpdate]
      }, {
        name: '删除',
        role: '/department/delete',
        api: [api.departmentDelete]
      }, {
        name: '保存排序',
        role: '/department/priority',
        api: [api.departmentPriority]
      }, {
        name: '查看部门成员列表',
        role: '/department/memberList',
        api: [api.departmentMemberList]
      }]
    }, {
      name: '操作日志',
      role: '/log',
      api: [
        api.logPageList,
      ],
      children: [{
        name: '列表',
        role: '/log/list',
        api: [
          api.logPageList,
        ]
      }]
    }]
  },
  {
    name: '运营管理',
    role: '/operate',
    children: [
      {
        name: '区域管理',
        role: '/area',
        api: [
          api.areaTree,
          api.areaDetail,
          api.areaPageList
        ],
        children: [
          {
            name: '区域列表',
            role: '/area/pageList',
            api: [api.areaPageList]
          },
          {
            name: '修改',
            role: '/area/update',
            api: [api.areaUpdate]
          },
          {
            name: '删除',
            role: '/area/delete',
            api: [api.areaDel]
          }
        ]
      },
      {
        name: '访问统计',
        role: '/channelTotal',
        api: [
          api.channelPageList,
        ],
        children: [
          {
            name: '频道访问统计列表',
            role: '/channelTotal/list',
            api: [api.channelPageList]
          },
        ]
      },
      {
        name: '文章访问统计',
        role: '/contentTotal',
        api: [
          api.contentBrowseList,
          api.contentTree,
        ],
        children: [
          {
            name: '文章访问统计列表',
            role: '/content/contentTotal',
            api: [api.contentBrowseList]
          },
        ]
      },
      {
        name: '编辑发布量统计',
        role: '/contentSendTotal',
        api: [
          api.totalByUser
        ],
        children: [
          {
            name: '编辑发布统计列表',
            role: '/content/contentSendTotal',
            api: [api.totalByUser]
          },
        ]
      },
      {
        name: '频道发布量统计',
        role: '/channelSendTotal',
        api: [
          api.totalByChannel
        ],
        children: [
          {
            name: '编辑发布统计列表',
            role: '/content/channelSendTotal',
            api: [api.totalByChannel]
          },
        ]
      },
      {
        name: '评论管理',
        role: '/comment',
        api: [
          api.commentList
        ],
        children: [
          {
            name: '列表',
            role: '/comment/pageList',
            api: [api.commentPageList]
          },
          {
            name: '评论回复',
            role: '/comment/itemList',
            api: [api.commentDetail]
          },
          {
            name: '修改',
            role: '/comment/editText',
            api: [api.commentEditText]
          },
          {
            name: '删除',
            role: '/comment/remove',
            api: [api.commentRemove]
          },
          {
            name: '审核',
            role: '/comment/checked',
            api: [api.commentChecked]
          }
        ]
      },
      {
        name: '敏感词管理',
        role: '/sensitivity',
        api: [
          api.wordSensitivityList,
          '/sensitivity/list'
        ],
        children: [
          {
            name: '列表',
            role: '/sensitivity/list',
            api: [api.wordSensitivityList]
          },
          {
            name: '添加',
            role: '/sensitivity/save',
            api: [api.wordSensitivitySave]
          },
          {
            name: '保存',
            role: '/sensitivity/update',
            api: [api.wordSensitivityUpdate]
          },
          {
            name: '删除',
            role: '/sensitivity/delete',
            api: [api.wordSensitivityDelete]
          }
        ]
      }, {
        name: '推送管理',
        role: '/pushTask',
        api: [
          api.pushTaskPageList,
          '/pushTask/pageList'
        ],
        children: [
          {
            name: '列表',
            role: '/pushTask/pageList',
            api: [api.pushTaskPageList]
          },
          {
            name: '新增',
            role: '/pushTask/save',
            api: [api.pushTaskSave, api.viewNewsPageList, api.getOneLevelChannelList]
          },
          {
            name: '取消',
            role: '/pushTask/cancel',
            api: [api.pushTaskCancel]
          }
        ]
      }, {
        name: '协议管理',
        role: '/html',
        api: [api.htmlPageList],
        children: [
          {
            name: '列表',
            role: '/html/pageList',
            api: [api.htmlPageList]
          },
          {
            name: '修改',
            role: '/html/update',
            api: [api.htmlGet, api.htmlUpdate]
          }
        ]
      },
      {
        name: '广告管理',
        role: '/advManger',
        api: [
          api.getOneLevelChannelList,
          api.getSpecialChannelList,
          api.advGet,
          api.advPageList,
        ],
        children: [
          {
            name: '列表',
            role: '/adv/pageList',
            api: [api.advPageList]
          },
          {
            name: '添加',
            role: '/adv/save',
            api: [api.advSave]
          },
          {
            name: '修改',
            role: '/adv/update',
            api: [api.advUpdate]
          },
          {
            name: '删除',
            role: '/adv/delete',
            api: [api.advDelete]
          }
        ]
      },
      {
        name: '广告投放',
        role: '/advApplyManger',
        api: [
          api.advApplyGet,
          api.advApplyPageList,
          '/advApply/pageList'
        ],
        children: [
          {
            name: '列表',
            role: '/advApply/pageList',
            api: [api.advApplyPageList]
          },
          {
            name: '审核',
            role: '/advApply/update',
            api: [api.advApplyUpdate]
          },
          {
            name: '删除',
            role: '/advApply/delete',
            api: [api.advApplyDelete]
          }

        ]
      }, {
        name: '版本管理',
        role: '/appVersion',
        api: [api.sysVersionPageList],
        children: [
          {
            name: '列表',
            role: '/appVersion/pageList',
            api: [api.sysVersionPageList]
          },
          {
            name: '修改',
            role: '/appVersion/update',
            api: [api.sysVersionGet, api.sysVersionUpdate]
          }
        ]
      },
      {
        name: '意见反馈',
        role: '/feedbackManger',
        api: [
          api.feedbackGet,
          api.feedbackPageList,
          '/feedback/pageList'
        ],
        children: [
          {
            name: '列表',
            role: '/feedback/pageList',
            api: [api.feedbackPageList]
          },
          {
            name: '删除',
            role: '/feedback/delete',
            api: [api.feedbackDelete]
          },
          {
            name: '审核',
            role: '/feedback/update',
            api: [api.feedbackUpdate,]
          }
        ]
      },
      {
        name: '系统消息',
        role: '/message',
        api: [
          api.messagePageList,
          api.messageGet,
        ],
        children: [
          {
            name: '列表',
            role: '/message/pageList',
            api: [api.messagePageList]
          },
          {
            name: '添加',
            role: '/message/save',
            api: [api.messageSave]
          },
          {
            name: '修改',
            role: '/message/update',
            api: [api.messageUpdate]
          },
          {
            name: '删除',
            role: '/message/delete',
            api: [api.messageDelete]
          }
        ]
      }
    ]
  },
  {
    name: '配置',
    role: '/config',
    children: [{
      name: '积分任务',
      role: '/integralTask',
      api:
        [
          api.integralTaskPageList,
          api.integralTaskGet,
          '/integralTask/pageList'
        ],
      children: [
        {
          name: '列表',
          role: '/integralTask/pageList',
          api: [api.integralTaskPageList]
        }, {
          name: '修改',
          role: '/integralTask/update',
          api: [

            api.integralTaskUpdate
          ]
        }]
    }, {
      name: '国际区号',
      role: '/internationalCode',
      api: [
        api.internationalCodePageList,
        api.internationalCodeGet,
      ],
      children: [
        {
          name: '列表',
          role: '/internationalCode/pageList',
          api: [
            api.internationalCodePageList
          ]
        },
        {
          name: '保存排序',
          role: '/internationalCode/batchUpdate',
          api: [
            api.internationalCodeBatchUpdate
          ]
        },
        {
          name: '修改',
          role: '/internationalCode/update',
          api: [
            api.internationalCodeUpdate
          ]
        }, {
          name: '添加',
          role: '/internationalCode/save',
          api: [
            api.internationalCodeSave
          ]
        }, {
          name: '删除',
          role: '/internationalCode/delete',
          api: [
            api.internationalCodeDelete
          ]
        }]
    }, {
      name: '常规配置',
      role: '/commonConfig',
      api: [
        api.commonConfigPageList,
        api.commonConfigGet,
        '/commonConfig/pageList'
      ],
      children: [
        {
          name: '列表',
          role: '/commonConfig/pageList',
          api: [api.commonConfigPageList]
        }, {
          name: '修改',
          role: '/commonConfig/update',
          api: [api.commonConfigUpdate]
        }]
    }, {
      name: 'oss管理',
      role: '/oss',
      api: [
        api.ossConfigPageList,
        api.ossConfigGet,
        '/oss/pageList'
      ],
      children: [
        {
          name: '列表',
          role: '/oss/pageList',
          api: [api.ossConfigPageList]
        }, {
          name: '修改',
          role: '/oss/update',
          api: [
            api.ossConfigUpdate
          ]
        }]
    },
      /*{
        name: '模型管理',
        role: '/model',
        api: [api.modelList],
        children: [
          {
            name: '列表',
            role: '/model/list',
            api: [api.modelList]
          },
          {
            name: '详情',
            role: '/model/get',
            api: [api.modelGet]
          },
          {
            name: '编辑',
            role: '/model/edit',
            api: [api.modelUpdate, api.modelPriority]
          },
          {
            name: '添加',
            role: '/model/add',
            api: [api.modelSave, api.modelCheckId]
          },
          {
            name: '删除',
            role: '/model/delete',
            api: [api.modelDelete]
          },
          {
            name: '保存排序',
            role: '/model/priority',
            api: [api.modelPriority]
          },
          {
            name: '频道模型',
            role: '/channelModel',
            api: [api.itemList],
            children: [
              {
                name: '列表',
                role: '/channelModel/list',
                api: [api.itemList]
              },
              {
                name: '详情',
                role: '/channelModel/get',
                api: [api.typeCheckId, api.itemGet]
              },
              {
                name: '保存默认选中字段',
                role: '/channelModel/save',
                api: [api.itemListSave]
              },
              {
                name: '添加',
                role: '/channelModel/add',
                api: [api.itemSave]
              },
              {
                name: '修改',
                role: '/channelModel/update',
                api: [api.itemUpdate]
              },
              {
                name: '删除',
                role: '/channelModel/delete',
                api: [api.itemDelete]
              },
              {
                name: '保存内容',
                role: '/channelModel/savePriority',
                api: [api.itemPriority]
              },
            ]
          },
          {
            name: '内容模型',
            role: '/contentModel',
            api: [api.itemList],
            children: [
              {
                name: '列表',
                role: '/contentModel/list',
                api: [api.itemList]
              },
              {
                name: '详情',
                role: '/contentModel/get',
                api: [api.typeCheckId, api.itemGet]
              },
              {
                name: '保存默认选中字段',
                role: '/contentModel/save',
                api: [api.itemListSave]
              },
              {
                name: '添加',
                role: '/contentModel/add',
                api: [api.itemSave]
              },
              {
                name: '修改',
                role: '/contentModel/update',
                api: [api.itemUpdate]
              },
              {
                name: '删除',
                role: '/contentModel/delete',
                api: [api.itemDelete]
              },
              {
                name: '保存内容',
                role: '/contentModel/savePriority',
                api: [api.itemPriority]
              },
            ]
          }
        ]
      }*/

    ]
  },
]
export default roles
